package com.cqust;

import com.cqust.dao.UserDao;
import com.cqust.dao.impl.implUserDao;
import com.cqust.proxy.MyProxy;

/**
 * @author 张成
 * @version 1.0
 * @date 2022/3/29 19:37
 */
public class Test {
    public static void main(String[] args) {


        MyProxy myProxy = new MyProxy();

        UserDao userDao = new implUserDao();

        UserDao userDaoPlus = (UserDao) myProxy.create(userDao);
        userDaoPlus.addUser();
        userDaoPlus.delUser();
    }
}
